package com.dc.seckill.exception;

import com.dc.seckill.result.CodeMsg;

/**
 * @模块 异常处理模块
 * @作者 djs
 * @时间 2018/3/19 11:09
 * @版本 V1.0
 * @描述 自定义异常
 */
public class GlobalException extends RuntimeException{

    private static final long serialVersionUID = -1113842000815695043L;

    private CodeMsg cm;

    public GlobalException(CodeMsg codeMsg){
        super(codeMsg.toString());
        this.cm = codeMsg;
    }

    public CodeMsg getCm(){
        return cm;
    }
}
